package com.zhang.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhang.gulimall.common.utils.PageUtils;
import com.zhang.gulimall.product.entity.CategoryEntity;
import com.zhang.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zhang
 * @email sunlightcs@gmail.com
 * @date 2022-09-14 10:23:17
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listCategoryWithTree();

    String[] findCategoryPath(String attrGroupId);

    List<CategoryEntity> listLevel1();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

